package top.lt.lt_ssm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import top.lt.lt_ssm.bean.message;
import top.lt.lt_ssm.dao.MessageDao;
import top.lt.lt_ssm.service.MessageService;

@Service
public class MessageServicelmpl implements MessageService {

	@Resource
	private MessageDao messageDao;

	@Override
	public List<message> gatall() {
		List<message> gatall = messageDao.gatall();
		return gatall;
	}

	@Override
	public int DelByid(int id) {
		return messageDao.DelByid(id);
	}

	@Override
	public List<message> gatin1(int id) {
		return messageDao.gatin1(id);
	}

	@Override
	public List<message> gatin2(String usn) {
		return messageDao.gatin2(usn);
	}

	@Override
	public List<message> gatin3(String bt) {
		return messageDao.gatin3(bt);
	}

}
